package com.mes.md.service.impl;

import com.mes.md.mapper.ItemSipMapper;
import com.mes.md.service.ItemSipService;
import com.mes.pojo.md.MdProductSip;
import com.mes.pojo.produce.ProcessSetting;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author hitsune
 * @Company kafu chino
 * @Description
 * @Time 2024/10/23 19:51
 */

@Service
public class ItemSipServiceImpl implements ItemSipService {
    @Autowired
    private ItemSipMapper itemSipMapper;
    @Override
    public List<MdProductSip> querySipByItemId(Long itemId) {
        return  itemSipMapper.querySipByItemId(itemId);
    }

    @Override
    public MdProductSip querySipById(Long sipId) {
        return itemSipMapper.querySipById(sipId);
    }

    @Override
    public List<ProcessSetting> queryProcessList(Long itemId) {
        return itemSipMapper.queryProcessList(itemId);
    }

    @Override
    public Integer addSip(MdProductSip itemSip) {
        return itemSipMapper.addSip(itemSip);
    }
}
